<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\User;
use Faker\Generator as Faker;

$factory->define(User::class, function (Faker $faker) {
    return [
        'username' => $faker->userName,
        'real_name' => $faker->name,
        'email' => $faker->email,
        'sex' => rand(1, 2),
        'status' => '1',
        'last_login_ip' => $faker->ipv4,
        'last_login_time' => time(),
        'created_at' => time(),
        'created_by' => 1,
        'password' => bcrypt('admin12345')
    ];
});
